package org.ytor.common.util.convert.converters;

import org.ytor.common.util.convert.Converter;

/**
 * created by yangtong on 2025/4/4 下午5:36
 */
public class LongToIntegerConverter implements Converter<Long, Integer> {
    @Override
    public Integer convert(Long source) {

        return Math.toIntExact(source);
    }

    @Override
    public Long reverseConvert(Integer source) {
        return Long.valueOf(source);
    }
}
